#ifndef MCU_H
#define MCU_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

extern uint16_t _uart0RxCount;
extern uint8_t _uart0RxBuffer[256];
extern uint8_t frameFlag;
void mcu_init(void);
void uart_send_str(const char* text);
void uart_send_bytes(const uint8_t* bytes, uint16_t len);
int16_t uart_receive_block(uint8_t* dataAddr, uint16_t dLen);

#ifdef __cplusplus
}
#endif


#endif
